package annotation;

/**
 * Created by wangyg 
 * on 2017/3/23 16:36
 */
@App(appName = "this is a Model")
public class Model {

	private String modelName;
	private String modelCatolog;

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getModelCatolog() {
		return modelCatolog;
	}

	public void setModelCatolog(String modelCatolog) {
		this.modelCatolog = modelCatolog;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		Model Model = (Model) o;

		if (modelName != null ? !modelName.equals(Model.modelName) : Model.modelName != null)
			return false;
		return modelCatolog != null ? modelCatolog.equals(Model.modelCatolog) : Model.modelCatolog == null;

	}

	@Override
	public int hashCode() {
		int result = modelName != null ? modelName.hashCode() : 0;
		result = 31 * result + (modelCatolog != null ? modelCatolog.hashCode() : 0);
		return result;
	}

	@Override
	public String toString() {
		return "Model{" +
				"modelName='" + modelName + '\'' +
				", modelCatolog='" + modelCatolog + '\'' +
				'}';
	}
}
